<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改商户')" />
	<th:block th:include="include :: ztree-css" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-Commodity-edit" th:object="${tbBrand}">
			<input id="roleId" name="roleId" type="hidden" th:field="*{brandId}"/>

			<div class="form-group">
				<label class="col-sm-3 control-label ">品牌名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="defaultShopName;" id="brandName" th:field="*{brandName}"required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">品牌首字母：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="businessStatus" id="brandFirstLetter" th:field="*{brandFirstLetter}" required>
				</div>
			</div>

<!--			<div class="form-group">-->
<!--				<label class="col-sm-3 control-label ">品牌logo：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input class="form-control" type="text" name="phone" id="phone" th:field="*{brandLogo}" required>-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">-->
<!--				<label class="col-sm-3 control-label ">创建人：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input class="form-control" type="text" name="email" id="createId" th:field="*{createId}" required>-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">-->
<!--				<label class="col-sm-3 control-label ">修改人：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input class="form-control" type="text" name="compName" id="updateId" th:field="*{updateId}" required>-->
<!--				</div>-->
<!--			</div>-->
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<th:block th:include="include :: ztree-js" />
	<script type="text/javascript">

		var prefix = ctx + "Brand";


		function submitHandler() {
			if ($.validate.form()) {
				$.operate.save(prefix + "/editSave", $('#form-Commodity-edit').serialize());
			}
		}

		function doSubmit(index, layero){
			var body = layer.getChildFrame('body', index);
			$("#treeId").val(body.find('#treeId').val());
			$("#treeName").val(body.find('#treeName').val());
			layer.close(index);
		}
	</script>
</body>
</html>
